package org.csu.softwaremetrics_demo.service.impl.java;

import org.csu.softwaremetrics_demo.entity.entry.LK;
import org.csu.softwaremetrics_demo.entity.result.impl.LKMetricResult;
import org.csu.softwaremetrics_demo.service.JavaCodeMetricService;
import org.springframework.stereotype.Service;

import java.io.File;

/**
 * @Description: Java代码LK度量服务类
 * @Author: Jukomu
 * @Package: org.csu.softwaremetrics_demo.service
 * @Project: SoftwareMetrics_demo
 * @name: LKService
 * @Date: 2025/4/6-20:38
 * @Filename: LKService
 */
@Service
public class LKService implements JavaCodeMetricService<LKMetricResult> {
    private LK lk = new LK();
    @Override
    public LKMetricResult calculate(File file) {
        return lk.calculate(file.getPath());
    }
}
